package com.hx.voice.recognition.auth.client.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

import javax.servlet.http.HttpServletRequest;

/**
 * @descripe：
 * @company：南京华讯方舟通讯设备有限公司
 * @author：zhoujinbing
 * @time：2019/6/10 16:05
 * @version：V1.0
 */
@Data
public class UserAuthConfig {

    @Value("${auth.user.token-header}")
    private String tokenHeader;

    private byte[] pubKeyByte;

    public String getToken(HttpServletRequest request)
    {
        return request.getHeader(this.getTokenHeader());
    }





}